<?php

namespace App\Http\Controllers\Home;

use App\Admin\Letter;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class LetterController extends Controller
{
    public function index(){
        $data = Letter::all() -> toArray();
        return view('home.letter.index',compact('data'));
    }
}
